package cn.itsource.ldj.base.service;

import cn.itsource.ldj.org.query.BaseQuery;
import cn.itsource.ldj.util.QueryResult;

import java.util.List;

public interface IBaseService<T> {
    void save(T t);
    void update(T t);
    void delete(Long id);

    T findOne(Long id);

    List<T> findAll();

    QueryResult<T> queryPage(BaseQuery query);

    void batchRemove(List<Long> ids);
}
